<template>
  <div id="index" style="margin-top: -10%">
    <van-nav-bar
        left-text="返回"
        right-text="设置"
        left-arrow
        @click-left="onClickLeft"
        @click-right="onClickRight"
    />
  </div>
</template>

<script>
export default {
  name: "Mine",
  data(){
    return{
      user:this.$store.state.userinfo.user.user,
    }
  },
  methods:{
    onClickRight(){
      this.$router.push("address-edit?user_id="+this.user.id);
    }
  }
}
</script>

<style scoped>

</style>